package com.company.crm.settings.service.impl;

import com.company.crm.settings.domain.User;
import com.company.crm.settings.mapper.UserMapper;
import com.company.crm.settings.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 作者：王磊栋
 * 2021/4/10
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;
    @Override
    public User selectUserByUserNameAndPass(Map<String, Object> map) {
        User user = userMapper.selectUserByUserNameAndPass(map);
        return user;
    }

    @Override
    public List<User> selectAll() {
        return userMapper.selectAll();

    }
}
